work round tmux and terminal bug