Fix toast showing at wrong moment