OTTAWA -- Ottawa protest organizer Tamara Lich has been freed on bail for the second time after a judge overturned a previous decision that sent her back into custody.

鈥淚鈥檓 very happy to be free and out,鈥 Lich said as she was mobbed by supporters while leaving the Ottawa courthouse Tuesday. She had been in custody since June 27, accused of breaching her bail conditions.

Superior Court judge Andrew Goodman said the justice of peace who presided over Lich鈥檚 June 27 show-cause hearing made several errors of law and misapprehended some facts when he ordered her continuing detention.

Lich was accused of breaching the bail condition that prohibited her from communicating with 10 other protest organizers, including former Freedom Convoy spokesman Tom Marazzo. They sat at the same table at a Freedom Award gala in Toronto in June and were photographed together.

Goodman found the breach claim to be 鈥渢enuous鈥 and not 鈥渞ationally connected鈥 to the idea behind the non-communication order 鈥 to prevent the organization of another Freedom Convoy protest.

He disagreed with the justice of the peace about the gravity of the charges 鈥 a key factor in bail decisions 鈥 saying it鈥檚 unlikely she would be sentenced to a lengthy term of imprisonment if convicted.

The Crown had argued that Lich could be sentenced to a prison term of up to 10 years, because of the effect of the protest on the city and its citizens.

鈥淢s. Lich is presumed to be innocent,鈥 Goodman said in his decision, noting that there is 鈥渦ncertainty about the degree to which she will be held culpable鈥 for the protest.

鈥淣othing in these reasons,鈥 Goodman said, 鈥渋s intended to minimize the harm done to the citizens of Ottawa鈥 or the costs to various levels of government.

Goodman noted that Lich had obeyed all the other bail conditions imposed on her for nearly four months and took the step of going back to court to ask that the conditions be varied to allow her to attend the gala.

Lich鈥檚 defence lawyers said they were pleased with the ruling.

鈥淥bviously, we鈥檙e disappointed it took nearly a month in custody to get to this point but we鈥檙e pleased at the conclusion today 鈥 that the order detaining her was clearly inappropriate and that鈥檚 now been corrected and she鈥檚 been released,鈥 said lawyer Eric Granger outside the court.

Before the decision, Lich appeared on the stand to face cross-examination by Crown prosecutor Moiz Karimjee, who asked about her personal financial situation. Lich said she had received about $69,000 in donations to her defence.

Karijmee played a TikTok video in court in which another protest organizer claimed Lich had once expressed support for a plan to buy a property in Ottawa to use as a base for the protests.

But Lich denied she had any involvement in a plan by a group called The United People of Canada to acquire a former church in the ByWard Market to use as an 鈥渆mbassy.鈥

Lich also told the court that her husband Dwayne Lich had travelled to Ottawa during the protest aboard a chartered aircraft paid for by the Adopt-a-Trucker fundraiser, not a private jet funded by a 鈥済ood Christian鈥 as Dwayne Lich testified in February.

Lich, 49, still faces a list of criminal charges, including mischief, counselling intimidation and counselling obstruction of a police officer related to the three-week occupation of Ottawa鈥檚 downtown core.

A pre-trial hearing is scheduled for August.