Made persistent undo only work when non-root