counter problem in a random sample player

Hi. I've made this random sample player to use in max for live, for a friend. I've got a problem with a counter object when it's run in 'loop sequential mode' : instead of starting at 0, the counter resets at '-1' so it will play the last sound of the menu twice. Other modes non looped seq, and looped and non looped random seem to work fine.
I had a hard time building the logic of the loop on / off setting so that should not be the most simple option... Also, I can't find how to save the sample folder with a set using pattr family objects with preset.
I guess that's a simple one, but sometimes, you can lose focus on simple things...