fixed the flash message for now