fix some errors related to edit section