fix hpricot bug