fix "previous" page link in pagination