Fixed off-by-one for synchronize loop i-parameter