fix broken page when trying to enroll with broken key