Restore global undo correctly.

It might not have been True before importing.