fix double clone bug