fix errors with form duplication