fix generate duplicate category