Make optional sections work on write