fix assign one variable to another to do deep copy and not just referenc...

...es