BUG Fix incorrect parsing of HTML content