Fix error in dependency-finding