flash messages correction