tried to fix the flash message'