[fix][benchmark] Don't increment the cursor in the loop but in the if statements. Fixes #2