Fix bugs in the schema.