Fixing pagination.php