fixed another issue with merging
fixed wrong submission in generated forms