fix bug in form builder.