Fixed a crash with nudge undo