fixed missing flash messages