copy operator bug