fix keyType glitches