fixed issue with duplicated chat messages