fix when cm=nocm, cm_version is not defined