Fixes edit form.