But it uses `CC_INVAILD_INDEX ` in other places. May be we should keep them consistent.