Getty Images By China Photos

(AP) A Michigan judge has acknowledged that a Friend of the Court referee erred when telling a mother she had to leave a courtroom to breastfeed her child.

The Lansing State Journal reports that Ingham County Chief Circuit Judge Janelle Lawless apologized Thursday for the referee's actions.

About 30 women later held a protest by nursing their babies in the court building's lobby in Lansing.

KyLee Dickinson of Potterville has told the newspaper she was told to stop nursing during an April 30th child support hearing and ordered to leave when the baby started fussing.

A court administrator said the referee meant to ask Dickinson to leave because of the child's noise.

A Michigan law passed last year gave women the right to breastfeed in areas open to the public.