fix scala 2.9 regression in #352

@edani