Handle a edge case of CM detection by hacky way.

TODO: Employ more general way.