diff --git a/ex1/ex1.c b/ex1/ex1.c
index 0687cd1cf12e6f92e3cd2a928757125df8ca3e25..f5144db9c102940f106da3edeb247c8a3e7aa050 100644
--- a/ex1/ex1.c
+++ b/ex1/ex1.c
@@ -144,9 +144,9 @@ int main(){
     float temp1;
     char *p1 = string1;
     int cpt1 = 0;
-    while(sscanf(p, "%f%n", &temp1, &left) == 1) {
+    while(sscanf(p1, "%f%n", &temp1, &left) == 1) {
         values1[cpt1] = temp1;
-        p += left;
+        p1 += left;
         cpt1++;
     }
 
@@ -155,9 +155,9 @@ int main(){
     float temp2;
     char *p2 = string2;
     int cpt2 = 0;
-    while(sscanf(p, "%f%n", &temp2, &left) == 1) {
+    while(sscanf(p2, "%f%n", &temp2, &left) == 1) {
         values1[cpt1] = temp2;
-        p += left;
+        p2 += left;
         cpt1++;
     }
 
@@ -167,7 +167,9 @@ int main(){
     ll res = ll_create();
     
 
-    dll_print(&list);
-    dll_destroy(&list);
+    dll_print(&res);
+    dll_destroy(&list1);
+    dll_destroy(&list2);
+    dll_destroy(&res);
     return 0;
 }
\ No newline at end of file