Fixed an small logical error.

Use operator= instead of copy ctor