Fix bug in form