fixed bug when renaming metakeys without deleting them