Fix multi-dependency bug introduced by metadata wildcard lookup.