Fixed invalid message exception.