Fix for jruby version, remove empty nodes