diff --git a/bob/learn/em/gmm_stats.cpp b/bob/learn/em/gmm_stats.cpp
index b6afe2d5a0f7538a75c46e7d6262654e60abab92..cda8d38997303eaf36b7b49427e3cbc1abdd598d 100644
--- a/bob/learn/em/gmm_stats.cpp
+++ b/bob/learn/em/gmm_stats.cpp
@@ -597,7 +597,7 @@ bool init_BobLearnEMGMMStats(PyObject* module)
   // initialize the type struct
   PyBobLearnEMGMMStats_Type.tp_name = GMMStats_doc.name();
   PyBobLearnEMGMMStats_Type.tp_basicsize = sizeof(PyBobLearnEMGMMStatsObject);
-  PyBobLearnEMGMMStats_Type.tp_flags = Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_INPLACEOPS;
+  PyBobLearnEMGMMStats_Type.tp_flags = Py_TPFLAGS_DEFAULT;
   PyBobLearnEMGMMStats_Type.tp_doc = GMMStats_doc.doc();
 
   // set the functions