fix a crash with ccpm