Fixed the toast when pressing Undo