Fix issue when there are no sections collapsed