Clone the schema before using it