Removed unnecessary array cloning in clone method