Fix for jruby