bugs in operator=