diff --git a/nerval/parse.py b/nerval/parse.py
index 65f8d943897e87bbfe50cced07fb5cfbe2ad5c0f..04173bf1e7a19cad42b735ca9ee4d5f7133b86b2 100644
--- a/nerval/parse.py
+++ b/nerval/parse.py
@@ -108,7 +108,7 @@ def parse_bio(lines: List[str]) -> dict:
                     and get_type_label(future_label) != last_tag
                 ):
                     index += 1
-                    if index < len(lines):
+                    if index < len(lines) and lines[index]:
                         future_label = lines[index].split()[1]
 
                 # Check for continuation of the original entity
diff --git a/tests/fixtures/end_of_file.bio b/tests/fixtures/end_of_file.bio
index 56f8e52b33f4ac07ceaa78c8e7c0ff34aa367d5d..aa6af75b70409efb2429251f8843dee97b9abd92 100644
--- a/tests/fixtures/end_of_file.bio
+++ b/tests/fixtures/end_of_file.bio
@@ -6,6 +6,7 @@ de I-PER
 Dieu I-PER
 roy I-PER
 de I-PER
+
 France B-LOC
 et I-PER
 de I-PER