fix references in keymaps