fix mistakes in im and using the new keymap