Fix the error in tag pagination.