another bugfix for edit view