fix key encoding some keys.