fix clone bug