hopefully fix JRuby problems