fixed the 'switch (cm_set)'