fix message field in the parseMessage function