Galmair flat file error fix