Fix issue when repeated section names had multiple spaces in them.