fix category duplication while renaming