DEVELOPER-431 fix generation of sections