fixing html node errors