File format correction, dumping correctly file