fix bug of edit form