fix focus in chatwindow