fixed closing chat window