Fix input file format