diff --git a/Common/OpenFile.cpp b/Common/OpenFile.cpp
index 231a30d8304d7972f26caa1ee9b2c812adcc099b..bbb12bb68723f9f0913f57cbf62a70b28dfbe6e8 100644
--- a/Common/OpenFile.cpp
+++ b/Common/OpenFile.cpp
@@ -375,7 +375,8 @@ int MergeFile(std::string fileName, bool warnIfMissing)
         tmp->readMSH(fileName);
         status = GeomMeshMatcher::instance()->match(tmp2, tmp);
         delete tmp;
-      } else
+      }
+      else
 	status = GModel::current()->readMSH(fileName);
 #if defined(HAVE_POST)
       if(status > 1) status = PView::readMSH(fileName);
diff --git a/Post/PView.cpp b/Post/PView.cpp
index 99dd1084b27e481428ac047ed9adc57f5d94da5a..d0f4278a5e954b7175c34d3016d0793043121adf 100644
--- a/Post/PView.cpp
+++ b/Post/PView.cpp
@@ -279,7 +279,7 @@ PView *PView::getViewByName(std::string name, int timeStep, int partition)
   // search views from most recently to least recently added
   for(int i = list.size() - 1; i >= 0; i--){
     if(list[i]->getData()->getName() == name &&
-       ((timeStep < 0 || !list[i]->getData()->hasTimeStep(timeStep)) ||
+       ((timeStep < 0 || !list[i]->getData()->hasTimeStep(timeStep)) &&
         (partition < 0 || !list[i]->getData()->hasPartition(timeStep, partition))))
       return list[i];
   }
@@ -290,7 +290,7 @@ PView *PView::getViewByNum(int num, int timeStep, int partition)
 {
   for(unsigned int i = 0; i < list.size(); i++){
     if(list[i]->getNum() == num &&
-       ((timeStep < 0 || !list[i]->getData()->hasTimeStep(timeStep)) ||
+       ((timeStep < 0 || !list[i]->getData()->hasTimeStep(timeStep)) &&
         (partition < 0 || !list[i]->getData()->hasPartition(timeStep, partition))))
       return list[i];
   }