Include last block in distance calculations
Fix ending region that misses width filters