fix up the CTS retval check