Fix error on category statistics page