NAMPA, Idaho (AP) — Prosecutors in southwestern Idaho agreed to amend a former juvenile correction nurse's sex crime charge largely because of pending lawsuits against the state.

According to court recordings obtained by the Idaho Press-Tribune, a Nampa newspaper, the lawsuits filed against the state over alleged sex abuse at the state's juvenile detention facility in Nampa impacted the criminal case against Valerie Lieteau.

Lieteau was originally charged with sexual battery of a child and sexual contact with an inmate. In a plea agreement filed with the court in March, prosecutors agreed to reduce those counts to a single charge of aggravated assault in exchange for Lieteau's guilty plea.

On Tuesday an Idaho judge rejected that deal despite prosecutors' concerns that the lawsuit could cause problems with evidence and victim testimony.