0.0.4: fix loopCounter