I am having this exact problem and have tried your solution with no luck. Do you remember which values you set to the CT_INVALID?