fix flash messages showing