Fixed pagination in categories