creating xml_stats fix