Fixed bad resolving of dependencies.