Category pagination corrected