Fixed a bug of form in the edit view.