Fix some bugs with Tmux