debug html dump memory leak fixed