fix case analysis for sections for scalars