fixing bug in form builder.