Using Neuromatic analyze more than 10 parts of a wave

I am using a routine that calls Neuromatic (V1.98 in Igor Pro 5.04B) Max measurements in the Stats tab for over 10 epochs per sweep. Unfortunately Neuromatic does not recognize more than 11 waves in the current folder.
(Several of the variables are entered as parameters is a dialog box.)
Here's the relevant snip of my routine:
NMTab("Stats")

do

StatsBsln(stimCounter,1,0,100,"Avg",1)
StatsAllWaves(-1,1,0)

winBegin = firstStim + ((1000/Rate)*stimCounter)
winEnd = winBegin + 10

StatsWinSelect(stimCounter)
StatsWin(stimCounter,winBegin,winEnd,"Max")
StatsRiseTime(stimCounter,1,10,90)
StatsDecayTime(stimCounter,1,37)
StatsAllWaves(-1,1,0)

stimCounter += 1

while (stimCounter <= numStim)

The problem arises when numStim is greater than 10. At that point, Neuromatic is no longer creating waves with the calculated values. I think this is due to Neuromatic only recognizing 11 waves in the current folder, but I'm not sure.
Have other people encountered this problem, and if so, is there a simple work around? Or, is there something else wrong with the loop?

Many thanks.
ap
The problem is the use of "stimCounter" as a parameter in calling a Neuromatic function. If this is changed to 0, the loop operates as it should.
-a