bug creating the schema