Fix == operator overriding bug