fix npe for dependency graph