logs pagination bugfix, when totalPages are zero