fix schema errors