Fixed pagination error.

Changes in index2.php related to pagination.