Correct the dependencies from external packages.