fix renaming errors that leave blank keys+priority