Bugfix: unreachable sectors should not be considered to have distance 0