Bug fix: adhoc undo i.e. { enableUndo: true }

previousAdhoc undefined error