fix uci batch nesting check (patch by lars)