Fixed some tmux and screen bugs