A Michigan judge has granted visitation and joint legal custody to a child’s father, who is a convicted sex offender who raped the child’s mother nine years ago.

Sanilac County Circuit Judge Gregory S. Ross awarded Christopher Mirasolo, age 27, of Brown City, joint legal custody of his eight-year-old son, and released the victim’s address to him, according to The Detroit News.

The victim, who lives out of state, has been told that she cannot live more than 100 miles from where the incident took place or she would be held in contempt.

The victim’s attorney Rebecca Kiessling, said that Judge Ross’ decision came after DNA testing showed that Mirasolo was the father of his victim’s child. But apparently neither Mirasolo nor the victim ordered the DNA testing.