Fixing issues with HTML parsing.