small modification in ChatController