Fixed duplication bug in categories