fix some jruby issues