fixed bug in dump_file
bug fixing