fixed flash message class