fix empty clone bug