Remove useless flash messages popping at the wrong moment