Fixed bug in clone().