fix spec failure in jruby