patch for flash messages