Fix a bug with == on copy/paste