Handle multiple jobs with same score, fixes #1771