Fix bug on flash messages close action.