diff --git a/GUI/Model/Model/ParameterTreeUtils.cpp b/GUI/Model/Model/ParameterTreeUtils.cpp
index 2a11adfb8ff1c1c9296688bb4d34299e81aaf562..7ff6700de0172d60aafd3d48ef074ac1cc4337ae 100644
--- a/GUI/Model/Model/ParameterTreeUtils.cpp
+++ b/GUI/Model/Model/ParameterTreeUtils.cpp
@@ -288,7 +288,7 @@ ParameterLabelItem* ParameterTreeBuilder::addParticle(ParameterLabelItem* parent
 void ParameterTreeBuilder::addLattice(ParameterLabelItem* parentLabel,
                                       const Interference2DAbstractLatticeItem* itf)
 {
-    const auto* lattice = itf->latticeType().currentItem();
+    auto* lattice = itf->latticeType().currentItem();
     auto* label = addLabel<Lattice2DItemCatalog>(parentLabel, "Lattice", lattice);
     for (const auto& d : lattice->geometryValues(!itf->xiIntegration()))
         addParameterItem(label, d);
diff --git a/GUI/Model/Sample/Lattice2DItems.h b/GUI/Model/Sample/Lattice2DItems.h
index 3e6d87b97e0c499e4515af8d6c7c5bdfbe162b4c..6bbbea11a829d3f004d534ab50a229d0bbdbd06b 100644
--- a/GUI/Model/Sample/Lattice2DItems.h
+++ b/GUI/Model/Sample/Lattice2DItems.h
@@ -30,7 +30,7 @@ protected:
 public:
     virtual ~Lattice2DItem() = default;
     virtual std::unique_ptr<Lattice2D> createLattice() const = 0;
-    virtual DoubleDescriptors geometryValues(bool withRotationAngle) const = 0;
+    virtual DoubleDescriptors geometryValues(bool withRotationAngle) = 0;
     virtual void serialize(Streamer& s) = 0;
     double unitCellArea() const;
 
@@ -48,7 +48,7 @@ public:
     BasicLattice2DItem();
     std::unique_ptr<Lattice2D> createLattice() const override;
     void serialize(Streamer& s) override;
-    DoubleDescriptors geometryValues(bool withRotationAngle) const override
+    DoubleDescriptors geometryValues(bool withRotationAngle) override
     {
         if (withRotationAngle)
             return {m_length1, m_length2, m_angle, m_latticeRotationAngle};
@@ -77,7 +77,7 @@ public:
     SquareLattice2DItem();
     std::unique_ptr<Lattice2D> createLattice() const override;
     void serialize(Streamer& s) override;
-    DoubleDescriptors geometryValues(bool withRotationAngle) const override
+    DoubleDescriptors geometryValues(bool withRotationAngle) override
     {
         if (withRotationAngle)
             return {m_length, m_latticeRotationAngle};
@@ -98,7 +98,7 @@ public:
     HexagonalLattice2DItem();
     std::unique_ptr<Lattice2D> createLattice() const override;
     void serialize(Streamer& s) override;
-    DoubleDescriptors geometryValues(bool withRotationAngle) const override
+    DoubleDescriptors geometryValues(bool withRotationAngle) override
     {
         if (withRotationAngle)
             return {m_length, m_latticeRotationAngle};