Prevent duplicate messages appearing