fix the bug for chat box.