fix schema generation