Fix MatchResult message reading/writing.