Parameter bug in avro file generation