corrected error in flash messages