1 in XML Bug

Fixed bug where if the XML had only one job, the function wouldn't call.