fix key register