Fix bug in edit form.