fix a compatibility issue with Scala 2.9.x