chat: bad fix for the duplicates messages, but safer than before