fixes to display of repeated sections

fixes #217