Attempt to fix #298 error with undo-tree