diff --git a/src/features_window.py b/src/features_window.py
index 65629e61426cd9284bd43e7d190f416bdfba15a3..c430f0a91b44a3cedd61748a70cacd1d809336bb 100644
--- a/src/features_window.py
+++ b/src/features_window.py
@@ -292,8 +292,8 @@ class FeaturesWindow:
 				if os.name == 'nt':
 					# CREATE_NO_WINDOW
 					p = Popen(['dvipng', '-bg', 'white', '-T', 'tight',
-						creationflags=0x08000000, tmpfile + '.dvi', '-o',
-						tmpfile + '.png'], cwd=gettempdir())
+						tmpfile + '.dvi', '-o', tmpfile + '.png'],
+						creationflags=0x08000000, cwd=gettempdir())
 				else:
 					p = Popen(['dvipng', '-bg', 'white', '-T', 'tight',
 						tmpfile + '.dvi', '-o', tmpfile + '.png'], cwd=gettempdir())