fixed bug with multiple jobs