Correcting bug in form builder