fix bug in data file generation