bug fix in make_module_dep