Unexpected close section: events