Fixed category repeat bug.