fix: goto was not going to the last slide when countNested=false

* changed >= to > for the fix
* also checking for non-positive values