get undo work without fixing database