Fix undo on entity-only spells