Fix 0 vs 1 based index offset errors