fix parsing sections