fixed errors in alert

fixed errors in alert