fix some errors relate to edit section