After setting $i+1 pagination is correct (page=1, page=2 etc.)