Fix 'non-zero start index' bug