fix jruby with mode 2.0 problem