fixed clone bug