Fixed bug in getJobs