The Medford Police, a department just outside Boston, caused controversy over the weekend by posing with a person in a Hillary Clinton mask dressed in prison clothes.

At the Fall Festival in Haines Square on Saturday, the officers can be seen smiling while holding the person in handcuffs. In a Facebook post, the caption read “Look who MPD grabbed at the Fall Festival in Haines Square today…”

The officers also posed with someone in a Donald Trump costume, with the caption, “Making America GREAT again in West Medford Square!!”

Harry MacGilvray, president of the Medford Police Patrolmen’s Association, admitted poor judgement and removed the posts.

“These were Halloween costumes. It was meant totally as a joke. I apologize if this offended anyone in any way,” MacGilvray said in a statement. “I never expected this sort of reaction. It was poor judgment on my part.”