Fix bad adjustment to checkDependency.