fixed error in edit view