fix bug when data in blockstore off by one byte