memory problem resolved by removing all uses of HTMLText