crash fix in near chat