MADISON, Wis. (AP) — A Wisconsin appeals court says a man convicted of killing five people, including his father, should not have been transferred from a mental hospital to a state prison.

The 3rd District Court of Appeals ruled Tuesday in the case of Bruce Brenizer. He was 15 years old in 1991 when he shot and killed his father, the father’s live-in girlfriend and her three children in rural Polk County.

READ MORE: New Poll Shows Minneapolis Residents Support Charter Amendment Replacing Police

Brenizer was committed to the Mendota Mental Health Institute in Madison for life for the deaths of the three children.

READ MORE: Minnesota Apple Orchards Endure Labor Shortage During Peak Season

In 2013, Brenizer was transferred from the mental health institute to the state prison in Waupun.

The appeals court agreed with Brenizer on Tuesday and said he should not have been transferred out of the mental institution because his life sentence there had not been terminated.

MORE NEWS: 'I Laid On The Floor And Just Bawled': Minnesota TikTok Sensation, 79, Overwhelmed By Support After Scooter Breaks

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)