Handle recursion on deps