fix schema code gen