Affirmed in part, remanded for resentencing. The district court violated the Ex Post Facto Clause when it sentenced the defendant to five years’ imprisonment under 18 U.S.C. § 3583(k) (2006) upon revoking his supervised release rather than sentencing him under the statutes as they existed in 2005.