PORTLAND, Ore. (KOIN) — A convicted rapist was recaptured on Wednesday after being mistakenly released from custody on November 22.

The Marion County Sheriff’s Office said Salvador Ledesma was mistakenly released because of an administrative error. Shortly before 12 p.m. on Wednesday, officials say a community member spotted Ledesma in downtown Salem and notified authorities. Salem police then located Ledesma and stayed with him while waiting for MCSO deputies to arrive.

“The Sheriff’s Office recognizes an incident such as this is concerning to our community members. While we know Ledesma was released on November 22, we did not become aware of the administrative error until November 30,” Sheriff Joe Kast said. “We will be conducting a review of the circumstances which led to Ledesma’s release to ensure we are able to address any policies, procedures or other factors which may have contributed to him being released from custody.”

Ledesma has been taken back to Marion County Jail pending transfer to the Oregon Department of Corrections. He was originally in custody at the Marion County Jail while appealing his prior convictions, which include second-degree rape.

Salvador wasn’t supposed to get out of prison until 2034.