Fixed bug in adding chatwindow to chatsession