Fixed compile error of Distribution.scala