diff --git a/api/jobs.py b/api/jobs.py
index b3725e03dff5e9235951a2fef74ddfde6dc9e8a5..14b6c1dc0eec11435631912cc97bd476b8ea1a09 100644
--- a/api/jobs.py
+++ b/api/jobs.py
@@ -43,7 +43,7 @@ ALGORITHMS = [
     "dcm2nii"
 ]
 
-# Holds all details of a scitran file needed to use that as an input a formula.
+# A FileInput tuple holds all the details of a scitran file that needed to use that as an input a formula.
 FileInput = namedtuple('input', ['container_type', 'container_id', 'filename', 'filehash'])
 
 # Convert a dictionary to a FileInput
diff --git a/api/rules.py b/api/rules.py
index c4cb74bcf568613991a4805f5b426d1025f2a526..f8adef5390cfd9e93aa39b485b53429aa3790ad7 100644
--- a/api/rules.py
+++ b/api/rules.py
@@ -122,7 +122,7 @@ def create_jobs(db, container, container_type, file_):
 
     # Get configured rules for this project
     project = get_project_for_container(db, container)
-    rules = project. get('rules', [])
+    rules = project.get('rules', [])
 
     # Add hardcoded rules that cannot be removed or changed
     for hardcoded_rule in HARDCODED_RULES: