fix a bug in cmts