Fixes cte proxy so that it can create records