fix an error for schema