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