Fix problem with submiting main gallery form