[BUGFIX #66222958] wrong number of total_entries in pagination