Fix indices for leftover processed by simd inner fold