fixed bug in form