correct error in alert