Fix error with response messages larger than 64KB