fixed flash message
fixed flash message ignoring logs and db