diff --git a/lib/templates/client/service.js b/lib/templates/client/service.js
index <HASH>..<HASH> 100644
--- a/lib/templates/client/service.js
+++ b/lib/templates/client/service.js
@@ -3,11 +3,11 @@
 
   angular
     .module('mean.__pkgName__')
-    .factory(__pkgName__);
+    .factory(__class__);
 
-  __pkgName__.$inject = ['__class__'];
+  __class__.$inject = ['__class__'];
 
-  function __pkgName__(__class__) {
+  function __class__(__class__) {
     return {
       name: '__pkgName__'
     };
Updated to __class__ which seems to have proper capitalization