Patch to panels to fix nested form bug