Several section-related fixes