fix scala 2.10 compilation error