fixed bug with infinite showing of chat window