bug fix for some servers when making xml file