flat file fix