edit dialog fixes #241