Fixed problem with second instance of flash message