fixing pagination for production