fix key hooks