chat document limit, disconnect fix