fixed group chat null pointer exception