Removed dead code in clone function