Bug fixes for forms, and webapis.