fix flash message won't display