uci: fix some incorrect judgements.