Fix buf with duplicated category