Fix for ambiguity equals

@dwightguth please review.