fix types' operator==()