Fixes a bug with message parser.