Fixing flash messager bug