fix type of flash message