From 08afd2e7f81b0ad47badc6ba16a0f7b5206907eb Mon Sep 17 00:00:00 2001
From: David Hendriks <davidhendriks93@gmail.com>
Date: Wed, 25 Mar 2020 13:46:15 +0000
Subject: [PATCH] fixed error

---
 binarycpython/utils/functions.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/binarycpython/utils/functions.py b/binarycpython/utils/functions.py
index f1ef1fad5..4ffcabaa5 100644
--- a/binarycpython/utils/functions.py
+++ b/binarycpython/utils/functions.py
@@ -381,10 +381,10 @@ def create_arg_string(arg_dict, sort=False, filter_values=False):
     # 
     for key in keys:
         # Filter out NULLS (not compiled anyway)
-        if filter_values:
-            if not value in ["NULL", "Function"]:
+        if filter_values:   
+            if not arg_dict[key] in ["NULL", "Function"]:
                 if not value == "":
-                    default_dict[key] = value        
+                    arg_string += "{key} {value} ".format(key=key, value=arg_dict[key])
         else:
             arg_string += "{key} {value} ".format(key=key, value=arg_dict[key])
     arg_string = arg_string.strip()
-- 
GitLab