try to solve duplicate chat messages issue