Fixed JRuby behavior