Bug in clone function removed.