fixed #361 - metadata seems to be changed even the edit dialog is dismissed