Fixes some bugs in TMUX Intergration.