"nextStep = 0;" placed where it should be;
#12