restore global variables related to TOhtml