fix cpp commun~ bug