fix malfunction when the number of section > 0