diff --git a/source/blender/python/api2_2x/windowTheme.c b/source/blender/python/api2_2x/windowTheme.c
index 0cb3c08cb10b19d52539781fe81fa182d680450d..4464fb83b96636152dd1298a2f9af1bfd763dd97 100644
--- a/source/blender/python/api2_2x/windowTheme.c
+++ b/source/blender/python/api2_2x/windowTheme.c
@@ -101,7 +101,7 @@ static PyMethodDef BPy_ThemeSpace_methods[] = {
 PyTypeObject ThemeSpace_Type = {
 	PyObject_HEAD_INIT( NULL ) 0,	/* ob_size */
 	"Blender Space Theme",	/* tp_name */
-	sizeof( BPy_Theme ),	/* tp_basicsize */
+	sizeof( BPy_ThemeSpace ),	/* tp_basicsize */
 	0,			/* tp_itemsize */
 	/* methods */
 	( destructor ) ThemeSpace_dealloc,	/* tp_dealloc */
@@ -277,7 +277,7 @@ static PyMethodDef BPy_ThemeUI_methods[] = {
 PyTypeObject ThemeUI_Type = {
 	PyObject_HEAD_INIT( NULL ) 0,	/* ob_size */
 	"Blender UI Theme",	/* tp_name */
-	sizeof( BPy_Theme ),	/* tp_basicsize */
+	sizeof( BPy_ThemeUI ),	/* tp_basicsize */
 	0,			/* tp_itemsize */
 	/* methods */
 	( destructor ) ThemeUI_dealloc,	/* tp_dealloc */