diff --git a/matlab/dynare_version.m b/matlab/dynare_version.m
index ed73971a465b6601a544b2c6e3171e416bc1d452..2e5f6c1029be08fe6039a1c004aeb0e15045322c 100644
--- a/matlab/dynare_version.m
+++ b/matlab/dynare_version.m
@@ -28,4 +28,4 @@ function v = dynare_version
 % You should have received a copy of the GNU General Public License
 % along with Dynare.  If not, see <http://www.gnu.org/licenses/>.
 
-    v = '4.0.1';
+    v = '4.0.2';
diff --git a/windows/dynare.nsi b/windows/dynare.nsi
index 2609111490543cf65b7876e6d9bd1be92bf636a5..64a7893c09ab539aec669ea7792219656318c6e9 100644
--- a/windows/dynare.nsi
+++ b/windows/dynare.nsi
@@ -10,7 +10,7 @@
 # - run "makensis dynare.nsi" to create the installer
 # - if there is no failure, this will create a file "dynare-VERSION-win32.exe" in the current directory
 
-!define VERSION "4.0.1"
+!define VERSION "4.0.2"
 
 Name "Dynare ${VERSION}"