fix flash alert