Fixed a bug that ignored dep.name