fix schema copy