Fixed EntityEqualityComparer implementation