Fixed check against copy of self to use pointers instead of equality operator