diff --git a/api.py b/api.py
index 30d690a3dd1e922c7a62a051604bad05711aa5a2..66ccb14c6f0463dcfed9c9ea444ffe4fb8cd7ee0 100755
--- a/api.py
+++ b/api.py
@@ -143,14 +143,14 @@ class EccsResults(Resource):
           elif (reg_auth and status):
               if (reg_auth == aux['registrationAuthority'] and status == aux['status']):
                  if (simple):              
-                    auxsimple = getsimpledict(aux)
+                    auxsimple = getSimpleDict(aux)
                     results.append(auxsimple)
                  else:
                     results.append(aux)
           elif (reg_auth and check_result):
               if (reg_auth == aux['registrationAuthority'] and (check_result == aux['sp1']['checkResult'] or check_result == aux['sp2']['checkResult'])):
                  if (simple):              
-                    auxsimple = getsimpledict(aux)
+                    auxsimple = getSimpleDict(aux)
                     results.append(auxsimple)
                  else:
                     results.append(aux)