fix message reader buffer