fix bfcp message build function