Only flash the message after commit is performed fine