diff --git a/web/pgadmin/preferences/__init__.py b/web/pgadmin/preferences/__init__.py
index a59e26d..e3af7d0 100644
--- a/web/pgadmin/preferences/__init__.py
+++ b/web/pgadmin/preferences/__init__.py
@@ -154,7 +154,7 @@ def preferences_s():
         if len(m['categories']):
             for c in m['categories']:
                 for p in c['preferences']:
-                    p['module'] = m['label']
+                    p['module'] = m['name']
                     res.append(p)
 
     return ajax_response(
diff --git a/web/pgadmin/utils/preferences.py b/web/pgadmin/utils/preferences.py
index 3148417..c7127c9 100644
--- a/web/pgadmin/utils/preferences.py
+++ b/web/pgadmin/utils/preferences.py
@@ -303,6 +303,7 @@ class Preferences(object):
         res = {
             'id': self.mid,
             'label': self.label or self.name,
+            'name': self.name,
             'categories': []
         }
         for c in self.categories:
