[Fixes bug 218] New cell undo now works properly