diff --git a/entity/PermissionDetail_entity/recordcontainers/jdito/onDelete.js b/entity/PermissionDetail_entity/recordcontainers/jdito/onDelete.js
index 4a73a56fbacb65b7f2a1adbc609a48c6d35eb3d6..3dc265ae56732033c08fe1ef61ee6b513e0810c0 100644
--- a/entity/PermissionDetail_entity/recordcontainers/jdito/onDelete.js
+++ b/entity/PermissionDetail_entity/recordcontainers/jdito/onDelete.js
@@ -32,8 +32,8 @@ switch (accessType) {
         sqlCondDelPermSet.deleteData(true, "ASYS_PERMISSIONSET"); // delete all permission sets
         break;
     default:
-        db.deleteData("ASYS_PERMISSIONACTION", sqlCondDelAction, alias); // delete all actions of the selected permission
-        db.deleteData("ASYS_PERMISSION", sqlCondDelPerm, alias); // delete the selected permission
+        sqlCondDelAction.deleteData(true, "ASYS_PERMISSIONACTION"); // delete all actions of the selected permission
+        sqlCondDelPerm.deleteData(true, "ASYS_PERMISSION"); // delete the selected permission
         break;
 }
 
diff --git a/process/Permission_lib/process.js b/process/Permission_lib/process.js
index 6c46a946d7ced16430f2dd07466f241bd5e9938a..cff2ffa1852bc16a54a5f299d150be993d231585 100644
--- a/process/Permission_lib/process.js
+++ b/process/Permission_lib/process.js
@@ -80,7 +80,7 @@ function PermissionUtil () {}
     }
 
     /**
- * Returns the action a given permission action id.
+ * Returns the action of a given permission action id.
  * 
  * @param {String} pActionId id of the action
  *