bug fix on flat file load