bug fix in clone