Fixed some bugs

Made the repeating sections work