Index: dolfinx-mpc/python/dolfinx_mpc/multipointconstraint.py
===================================================================
--- dolfinx-mpc.orig/python/dolfinx_mpc/multipointconstraint.py	2022-12-14 13:21:21.649005740 +0100
+++ dolfinx-mpc/python/dolfinx_mpc/multipointconstraint.py	2023-01-09 00:51:14.672150817 +0100
@@ -88,7 +88,7 @@
         self._cpp_object = dolfinx_mpc.cpp.mpc.MultiPointConstraint(
             self.V._cpp_object, self._slaves, self._masters, self._coeffs, self._owners, self._offsets)
         # Replace function space
-        self.V = _fem.FunctionSpace(None, self.V.ufl_element(), self._cpp_object.function_space)
+        self.V = _fem.FunctionSpace(self.V.mesh, self.V.ufl_element(), self._cpp_object.function_space)
 
         self.finalized = True
         # Delete variables that are no longer required
