fix checkDependencies