fix flash alerts