bug fix: byte read offset