fix bug in form