Fix compile in cm tree