corrected bug in form