fixed flash messages