A Pennsylvania woman down in the dumps over her jailed boyfriend admitted to having sex with a 14-year-old boy to help her cope with depression, police said.

Leanora Propes, of Scranton, is facing statutory sexual assault charges after she acknowledged having sex with the teen last summer while her boyfriend, Glenn James Marr, was incarcerated, WNEP reports.

Police said Propes told detectives she got intimate with the juvenile because she was lonely and depressed after Marr was locked up. Marr, 34, has also been charged with obstruction for giving investigators false information, according to the Pittsburgh Tribune-Review.

Marr, of Binghamton, New York, initially reported Propes’ sexual encounter with the teen before changing his story, saying that he concocted it to “get revenge” on her. The victim, who also denied the allegations at first, later told investigators he and Propes had four romantic encounters while Marr was behind bars, police said.

Both Propes and Marr were free after posting bail and are expected back in court on Wednesday, the Tribune-Review reports.