diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c
index 69e1e3287..d59a87f98 100755
--- a/iguana/iguana_unspents.c
+++ b/iguana/iguana_unspents.c
@@ -469,7 +469,10 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3
         if ( spentbp != 0 && unspentind > 0 && unspentind < spentbp->ramchain.H.data->numunspents )
         {
             if ( spentbp->dirty == 0 )
+            {
+                spentbp->dirty = now;
                 iguana_ramchain_prefetch(coin,&spentbp->ramchain);
+            }
             if ( incremental == 0 )
             {
                 if ( spentbp->ramchain.Uextras == 0 )
@@ -489,7 +492,6 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3
                 u = &spentU[unspentind];
                 if ( (pkind= u->pkind) != 0 && pkind < spentbp->ramchain.H.data->numpkinds )
                 {
-                    spentbp->dirty = now;
                     flag = -1;
                     if ( incremental == 0 )
                     {
diff --git a/iguana/main.c b/iguana/main.c
index ba42c0129..cf62f18e9 100755
--- a/iguana/main.c
+++ b/iguana/main.c
@@ -367,7 +367,7 @@ int32_t iguana_balanceflush(struct iguana_info *coin,int32_t refhdrsi,int32_t pu
                             {
                                 if ( fwrite(Uptr,sizeof(*Uptr),numunspents,fp2) == numunspents )
                                 {
-                                    bp->dirty = 0;
+                                    //bp->dirty = 0;
                                     err = 0;
                                     printf("[%d] of %d saved (%s) and (%s)\n",hdrsi,numhdrsi,fname,fname2);
                                 }