fixed bug in modules.lib