Fix add and edit form.