fixed buffer overflow in html parser init