diff --git a/src/core/identificationgroup.cpp b/src/core/identificationgroup.cpp
index feef578127d0d8f56061419d4ebcbd6928fe5643..944f41fa5d92c68fc8537826851d392ffd77ac7d 100644
--- a/src/core/identificationgroup.cpp
+++ b/src/core/identificationgroup.cpp
@@ -185,13 +185,13 @@ void IdentificationGroup::startGrouping (const GroupingType & grouping_type) {
         delete _p_grp_experiment;
     }
     _p_grp_experiment = GroupingExperiment::newInstance(grouping_type);
-    for (auto & p_protein_match : _protein_match_list) {
+    for (ProteinMatch * p_protein_match : _protein_match_list) {
         p_protein_match->setGroupingExperiment(_p_grp_experiment);
     }
 
     _p_grp_experiment->startGrouping();
     _group_store.clear();
-    for (auto & p_protein_match : _protein_match_list) {
+    for (ProteinMatch * p_protein_match : _protein_match_list) {
         p_protein_match->setGroupInstance(_group_store);
     }
 
diff --git a/src/core/project.cpp b/src/core/project.cpp
index b1390103d51c2a1b873f93b410cec4b43bd525c2..e24ddd7c2124c889e87bdc21824b732c17bfd7d7 100644
--- a/src/core/project.cpp
+++ b/src/core/project.cpp
@@ -139,7 +139,7 @@ void Project::readXpipFile(QFileInfo xpip_fileinfo) {
 
 
 void Project::startGrouping() {
-    for (auto & p_id_group : _identification_goup_list) {
+    for (IdentificationGroup * p_id_group : _identification_goup_list) {
         p_id_group->startGrouping(_grouping_type);
     }