Fix bugs of keymap and mux driving