fix bug for clone