fix key mapping bug