Ensure that the company id is set when creating object from cw