Fixes memory management issue with form sections.