fix posting flash message