fix bugs in tmux and keyremap