Fix cc factory.