When using 0-based first page with infinite mode, links[] array does not correctly initialized