fixed bug in invalidate_deps in ndepgraph