Fix undo for dispo event