Fix incompatible key type.