Bug fix for loading dependencies.