Fix issue with jruby 1.8 mode