fix key type