fix duplicate attribute keys in sections

fixes #1