Bug fix in edit view.