fix an error on rediting the form