fix nil block bug for alert view