fix for flash messages