Fixed the CNT undefined bug