Fix flash message activation