Why are you cloning the schema and then overwriting the original schema with the clone?