Fix a bug that occurs while retrieving multiple jobids with the --jobids...

... option