diff --git a/tp_2_miso_mphf.py b/tp_2_miso_mphf.py
index cf0eb6d360ca5722f173b0fabd9841a5aa41c00c..6620250cd81f9193205975c02249669672aae1f6 100644
--- a/tp_2_miso_mphf.py
+++ b/tp_2_miso_mphf.py
@@ -167,7 +167,8 @@ def create_hash_table(set_kmer, n):
     for kmer in set_kmer:
         h = abs(hash(kmer))
         rang = get_hash_mphf(mphf, kmer)
-        tableau[rang] = kmer
+        if 0 <= rang <n :
+            tableau[rang] = kmer
     # retourner le tableau et la mphf
     return tableau, mphf
 
@@ -209,7 +210,7 @@ def compare_taille(n_max, fichier_sortie):
 	plt.close()
 
 # dé-commenter quand vous êtes prêts, expliquer les résultats
-#compare_taille(10000,"mphf.png")
+compare_taille(10000,"mphf.png")
 
 import doctest
 doctest.testmod()