fixing the schema