bug fixed: parsing xml headers