fix traceback on CC creation (Bug 907985)