fixed nested form bug