avoid jruby's bug