Fix the bug which causes the chat window tab to not have the focus when it is shown..