Fixes code to work with latest jruby version