Fix CUI processing
Correct rcode value