fix off by one bug when calculating the entry_skip for the next block