Fixed occassional crash on startup with tmux background