fixed broken adding of metakeys if key is edited