Proper fix for jRuby