fix missing json import, fix misnamed variable
diff --git a/xos/core/models/service.py b/xos/core/models/service.py
index 0692baf..10f3dd9 100644
--- a/xos/core/models/service.py
+++ b/xos/core/models/service.py
@@ -1,6 +1,7 @@
 from django.db import models
 from core.models import PlCoreBase,SingletonModel
 from core.models.plcorebase import StrippedCharField
+import json
 
 class Service(PlCoreBase):
     description = models.TextField(max_length=254,null=True, blank=True,help_text="Description of Service")
@@ -49,7 +50,7 @@
         return attributes.get(name, default)
 
     def set_attribute(self, name, value):
-        if self.service_specific_attributes:
+        if self.service_specific_attribute:
             attributes = json.loads(self.service_specific_attribute)
         else:
             attributes = {}