(PORT HURON) -- A judge in Port Huron has dismissed charges against six people linked to medical marijuana dispensaries, saying it wasn't clear the pot shops were illegal until the Michigan Supreme Court ruled earlier this year. The judge says the six couldn't have known the Supreme Court would bar the sale of medical marijuana through shops. They'd been ordered to stand trial before the court made a decision in February. Owners and employees of the Blue Water Compassion Center facilities Doug, Debra, James, and Amanda Amsdill and Mark and Terra Sochacki were accused of operating the marijuana dispensaries in St. Clair, Tuscola and Sanilac counties. The attorney general's office says the charges should stick. Prosecutors say there shouldn't have been any confusion because dispensaries were illegal under other Michigan laws at the time the charges were filed. The state is considering an appeal.