Subject: Fixed bug in pagination next and previous link

Description: changes in pagination