fixed document and keymap