Fixed problem with unexisting keys in the JSON and XML files