Fix requeuing of multiple jobs