little fix for jruby compatibilty