didFail block crash fixed