Metadate edit: fix issue for single edit