Fix bug in appKeyFail.