Repaired bug, need to reduce number of detected segments.