fix the error in the edit page