Fixed pagination issue in category view.