Bug fix: full dependency match when calculating dependencies