diff --git a/install.sh b/install.sh
index 01f948d..fcd93cf 100755
--- a/install.sh
+++ b/install.sh
@@ -127,17 +127,6 @@ rmInstalled()
            fi
 
     fi
-        
-    MPI_SELECTOR_LIST=$(rpm -qa | grep ${MPI_SELECTOR_NAME})
-
-    if [ -n "$MPI_SELECTOR_LIST" ]; then
-        for mpi_name in $MPI_SELECTOR_LIST
-        do 
-            if ( $RPM -q ${mpi_name} > $NULL 2>&1 ); then
-                ex "$RPM -e ${mpi_name}"
-            fi
-        done    
-    fi
 
     MPITESTS_LIST=$(rpm -qa | grep mpitests)
  
@@ -183,6 +172,17 @@ rmInstalled()
         done    
     fi
     
+    MPI_SELECTOR_LIST=$(rpm -qa | grep ${MPI_SELECTOR_NAME})
+
+    if [ -n "$MPI_SELECTOR_LIST" ]; then
+        for mpi_name in $MPI_SELECTOR_LIST
+        do 
+            if ( $RPM -q ${mpi_name} > $NULL 2>&1 ); then
+                ex "$RPM -e ${mpi_name}"
+            fi
+        done    
+    fi
+
     if [[ ! -z $MTHOME && -d $MTHOME ]]; then
         if [ -e $MTHOME/uninstall.sh ]; then
             echo
