Typo fix in message type comparison