generateForm example fix