fixed alert error