Fixed search for duplicated jobs in job restart (Issue #7)