Fixed that duplicated arr variable is defined as value in DataGenerator.scala