fix an issue with collecting transitive deps