fixed chat session bugs