Fixed a bug with XML files without all the required fields