Fix indices in unrolled memcpy