stab.py: fixed loop iteration number