Workaround jruby bug