Fixed bug in form