fix html node pointer error