Fix receive ByteBuffer to take into account position greater than zero.