fix key lookup type