Fixed minor bug in Exp.scala