Corrected the global undo tree mode