SW: loop_ctr reset to 1, not 0.