fixed bug with adding a job