Don't set CC if it has already been set

Fixes issue #1146.