Fixed bug related to form on edit page.