Corrected loops in xml_import_job.rb