fix memory corruption error in string bcast