html parsing bug