A South Florida judge has sided with the Clevelander hotel in a lawsuit over a new Miami Beach law that sets a 2 a.m. closing time in the South Beach entertainment district.

Miami-Dade Circuit Judge Beatrice Butchko said in a hearing on Monday that the city commission’s vote to approve the law wasn’t properly executed. The new law aimed at curbing the late-night partying on South Beach went into effect May 22 for a period of seven months. The entertainment district had been serving alcohol until 5 a.m.