diff --git a/src/app/contact/controllers/ContactController.php b/src/app/contact/controllers/ContactController.php
index 797987b94076f782f77759528194e33c765e04df..59cd107d8b0447bf3c8993375614a134dac79004 100755
--- a/src/app/contact/controllers/ContactController.php
+++ b/src/app/contact/controllers/ContactController.php
@@ -37,9 +37,7 @@ class ContactController
 
         $data = $request->getParams();
 
-        $check = Validator::notEmpty()->validate($data['firstname']);
-        $check = $check && Validator::stringType()->notEmpty()->validate($data['lastname']);
-        $check = $check && Validator::intVal()->notEmpty()->validate($data['contactType']);
+        $check = Validator::intVal()->notEmpty()->validate($data['contactType']);
         $check = $check && Validator::intVal()->notEmpty()->validate($data['contactPurposeId']);
         $check = $check && Validator::stringType()->notEmpty()->validate($data['isCorporatePerson']);
         $check = $check && Validator::stringType()->notEmpty()->validate($data['email']);
diff --git a/src/core/controllers/PreparedClauseController.php b/src/core/controllers/PreparedClauseController.php
index ad6f9d1342f2f033856f2b9990f7ffcea4bc49d4..0d2edb0f4ea423805a87b93005c381de50c6d11e 100755
--- a/src/core/controllers/PreparedClauseController.php
+++ b/src/core/controllers/PreparedClauseController.php
@@ -153,7 +153,7 @@ class PreparedClauseController
             for ($i = 0; $i < $total; $i++) {
                 $tmpParentEntity = trim(str_replace("'", '', $parentEntity[1][$i]));
                 if (!empty($tmpParentEntity)) {
-                    $entity = entitymodel::getByEntityId(['entityId' => $tmpParentEntity, 'select' => ['entity_id', 'parent_entity_id']]);
+                    $entity = Entitymodel::getByEntityId(['entityId' => $tmpParentEntity, 'select' => ['entity_id', 'parent_entity_id']]);
                 }
                 if (empty($entity['parent_entity_id'])) {
                     $parentEntityClause = "''";
@@ -169,7 +169,7 @@ class PreparedClauseController
         if ($total > 0) {
             for ($i = 0; $i < $total; $i++) {
                 $tmpSisterEntity = trim(str_replace("'", '', $sistersEntities[1][$i]));
-                $sisterEntity = entitymodel::getByEntityId(['entityId' => $tmpSisterEntity, 'select' => ['parent_entity_id']]);
+                $sisterEntity = Entitymodel::getByEntityId(['entityId' => $tmpSisterEntity, 'select' => ['parent_entity_id']]);
                 $allSisterEntities = EntityModel::get(['select' => ['entity_id'], 'where' => ['parent_entity_id = ?'], 'data' => [$sisterEntity['parent_entity_id']]]);
 
                 $allSisterEntitiesClause = '';