also fix pagination not updated when switching from a non-empty to an empty result list