Fixes an error on jruby-head