#3667: Fix bugs in the form.