Tested and fixed operator =