bugfix : fixed checksum computation when startoffsset is specified