fixed (one-off) error with limit higher than 2 (solving #388 (closed))
No changes between version 3 and version 3