Fix pager visibility check

Should calculate minimum value for the keys, which is actually the limit, instead of the value, which is just the label