Fixed bug causing an extra decrement

It was when the limiting factor was greater than one