fix pagination range for categories #224