Fixed HTML parsing issue