reverted previous fix and applied array_values to $jobIds before
querying mongodb 2.6