bugfix for edit-button