fixed a bug with adding files to module_files