Fixed inconsistent table creation and tbody creation in createForm.