fix bug in CrossValidation.scala