type correction on messages