fix bug in get_cmc