fixed for flash messages