diff --git a/MeshLib/NodePartitionedMesh.h b/MeshLib/NodePartitionedMesh.h
index 5a913b59e4229ae5f154fc6c3ce6fa3846b4f38b..d3aeb0ba95e1d8685e441d801db5f7f74496eaac 100644
--- a/MeshLib/NodePartitionedMesh.h
+++ b/MeshLib/NodePartitionedMesh.h
@@ -96,11 +96,11 @@ class NodePartitionedMesh : public Mesh
         bool isGhostNode(const std::size_t node_id) const
         {
             if(node_id < _n_active_base_nodes)
-                return true;
+                return false;
             else if(node_id >= _n_base_nodes && node_id < getLargestActiveNodeID() )
-                return true;
-            else
                 return false;
+            else
+                return true;
         }
 
         /// Get the largest ID of active nodes for higher order elements in a partition.