fixed module dependency graph generation