Fix bug in section editing with underscores

pls add tests soon

Closes #195.