Fixed a bug: the edit dialog fields were not cleared if an