Fixed for JRuby