Index: setup.nsi
===================================================================
--- setup.nsi	(revision 170)
+++ setup.nsi	(revision 171)
@@ -7,7 +7,7 @@
 
 # General Symbol Definitions
 !define REGKEY "SOFTWARE\$(^Name)"
-!define VERSION 0.3.13
+!define VERSION 0.3.14
 !define COMPANY "Bitcoin project"
 !define URL http://www.bitcoin.org/
 
@@ -42,12 +42,12 @@
 !insertmacro MUI_LANGUAGE English
 
 # Installer attributes
-OutFile bitcoin-0.3.13-win32-setup.exe
+OutFile bitcoin-0.3.14-win32-setup.exe
 InstallDir $PROGRAMFILES\Bitcoin
 CRCCheck on
 XPStyle on
 ShowInstDetails show
-VIProductVersion 0.3.13.0
+VIProductVersion 0.3.14.0
 VIAddVersionKey ProductName Bitcoin
 VIAddVersionKey ProductVersion "${VERSION}"
 VIAddVersionKey CompanyName "${COMPANY}"
Index: main.cpp
===================================================================
--- main.cpp	(revision 170)
+++ main.cpp	(revision 171)
@@ -2987,7 +2987,7 @@
         txNew.vin.resize(1);
         txNew.vin[0].prevout.SetNull();
         int64 nNow = max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime());
-        if (nNow > nPrevTime+1 && ++nExtraNonce >= 0x7f)
+        if (++nExtraNonce >= 0x7f && nNow > nPrevTime+1)
         {
             nExtraNonce = 1;
             nPrevTime = nNow;
Index: serialize.h
===================================================================
--- serialize.h	(revision 170)
+++ serialize.h	(revision 171)
@@ -22,7 +22,7 @@
 class CAutoFile;
 static const unsigned int MAX_SIZE = 0x02000000;
 
-static const int VERSION = 31306;
+static const int VERSION = 31400;
 static const char* pszSubVer = "";
 
 
