fixing pagination for tags