fix repeated categories