Fix modify empty section

recommended to review per commit.
why `sformat`?