handle null sections