fix flash messages