fix compile error in Scala 2.10.0