Michael Yifan Wen of New York.Photo:Nassau County Police Department

Nassau County Police Department
A family in New York was left shaken after an evening oftrick-or-treatingended with a child allegedly having a weapon aimed directly at him.
An officer with the Nassau County Police Department confirmed to PEOPLE that Michael Yifan Wen, 43, of Manhasset, New York was arrested and charged withendangering the welfare of a childand menacing after pointing a firearm at a 6-year-old’s head on Saturday.
A 42-year-old mother was taking her daughter, two sons, and her nephew to what she thought was a particular home in the 100 block of Rockcrest Road. The 10-year-old girl intended to leave a goody bag at her friend’s house when her 6-year-old brother got out of the car to go with her.
Stock photo of a child with Halloween candy.Getty

Getty
“They rang the doorbell and left a goody bag full of candy for Halloween on the porch, before returning to the vehicle,” the release states.
However, the family didn’t get far before realizing they may have had the wrong address. Upon returning to the residence, the 6-year-old went to grab the bag of treats to take it to the proper home, police said.
“At this time, the front door opened, a male stepped out of the house and pointed a black handgun at the victim’s head,” the release added.
Wen was arraigned on Sunday at First District Court in Hempstead, New York. He pleaded not guilty and was released. He’s ordered back to court on Nov. 13, reportsWDTN 2.
Stock photo of children with Halloween candy.Getty

Wen’s attorney William Zou toldCBS New Yorkthat the situation has been one big misunderstanding.
Never miss a story — sign up forPEOPLE’s free daily newsletterto stay up-to-date on the best of what PEOPLE has to offer, from celebrity news to compelling human interest stories
Zou claimed his client, who lives with his wife and children, has recently been the target of teens banging on his door for no reason, and shared home surveillance footage with the outlet of two alleged incidents.
According to the Nassau County District Attorney’s Office, Wen was ordered to undergo a mental health evaluation and take anger management, reports CBS New York.
source: people.com