Fix for Travis on JRuby