Fixed clone() method.