fix chat page bug