fixed alert issue