Fixed bug in write_arff