The US ride-hailing giant Uber on Monday won a London court appeal to operate in the capital for the next 18 months after a judge ruled it was a “fit and proper” firm, despite safety concerns, reported AFP.

With nearly 3.5 million customers and 45,000 drivers in the British capital, Uber overturned Transport for London’s (TfL) refusal last year to renew its operating licence around the issue of unauthorised drivers.

Despite pointing to Uber’s “historical failings”, judge Tan Ikram on Monday said Uber was “a fit and proper person” to hold a private hire vehicle operator’s licence in London, as per AFP reports.

He noted that Uber had sought to explain how breaches had taken place and how they would be remedied.

Jamie Heywood, Uber’s general manager for northern and eastern Europe, said Monday’s “decision is a recognition of the company’s “commitment to safety.”

Heywood admitted that Uber’s behaviour over the problem of unauthorised drivers had been wrong.

“It was not what we would do now. It was inadequate, we could have done better,” he said.

TfL, which is chaired by Mayor of London Sadiq Khan, acknowledged Monday that “Uber has implemented a number of changes to improve passenger safety and address the issues.”

It added in a statement: “This 18-month licence with a number of conditions allows us to closely monitor Uber’s adherence to the regulations and to swiftly take action if they fail to meet the required standards.”

The transport authority had argued that some Uber trips across London had taken place with unlicensed, suspended or dismissed drivers.

In court, the judge said Uber had tightened up review processes over issues of the document and insurance fraud.

“Uber does not have a perfect record but it has been an improving picture,” Ikram added.

“I am satisfied that they are doing what a reasonable business in their sector could be expected to do, perhaps even more,” the judge said.

Uber’s London operation has suffered previous licence suspensions along with protests from the capital’s traditional black cab drivers.