make NULL and "" equivalent for some cid fields.