nested form bug fix