fixed chat window bug