Fixed recursive clone stack overflow