core-4476 fix metadata editing.