Fix addDependency method

addDependency replaced addJobDependency a lot of time ago