fix matching wrap around problem
actually fix the sector incrementing issue