fix some session/window bugs in tmux