correct substring for dependencies.