diff --git a/PanACoTA/align_module/get_seqs.py b/PanACoTA/align_module/get_seqs.py
index a8b61df01e533b9684b9a508b6602216d3a1273e..b0af4000c00f0506cbdda1a820fe8715af47e5e3 100755
--- a/PanACoTA/align_module/get_seqs.py
+++ b/PanACoTA/align_module/get_seqs.py
@@ -265,11 +265,13 @@ def extract_sequences(to_extract, fasf, files_todo=None, outf=None):
             previous_fp = None
 
             # Extract sequence name
-            # last_char = line.find(' ')
-            # if last_char == -1:
-            #     last_char = len(line)
-            # seq = line[1:last_char].strip()
-            seq = line.strip().split()[0][1:]
+            last_char = line.find('\t')
+            if last_char == -1:
+                last_char = line.find(' ')
+                if last_char == -1:            
+                    last_char = len(line)
+            seq = line[1:last_char].strip()
+            # seq = line.strip().split()[0][1:]
 
             # Seq is part of sequences to extract
             if seq in to_extract: