A former FBI agent was sentenced to life in prison Thursday for sexually assaulting an 11-year-old girl while serving as an Alabama state trooper.

Alabama’s state police hired Christopher Bauer even after he was kicked out of the FBI amid earlier claims he raped a co-worker at knifepoint.

An Associated Press investigation showed Bauer, 45, moved from one law enforcement job to another with the help of a forged letter making it appear he was “eligible for rehire.”