Fixes pagination links with next and prev links