fixed chat bug (some messages were not being displayed)