fix isUpType ambiguity