A jailed Virginia lawmaker who resigned amid a sex scandal with his 17-year-old secretary has won his seat back in a special election.

Joseph Morrissey, 57, was serving as a Democrat when he was accused of having sex with the teen employee. He resigned and is serving six months in jail for contributing to the delinquency of a minor. Still, Morrissey ran as an independent in Tuesday’s special election to regain his seat.

A nude photo of Morrissey’s secretary was found on his phone. Both Morrissey and the young woman, Myrna Pride, deny that they had sex. Pride is now pregnant and will not reveal the identity of her child’s father, according to the Associated Press.

Lawmakers are researching how to permanently expel Morrissey from his seat.

Read more from the Associated Press: