Fix NPE  on opening chat