Fix JRuby issue