Fixed buf with wrong variable for BYTERANGE.