fixed count check for sections