Fixing the file format output