diff --git a/audio_init.f90 b/audio_init.f90
index bc288cfcf..ff6cd46b0 100644
--- a/audio_init.f90
+++ b/audio_init.f90
@@ -58,12 +58,12 @@ subroutine audio_init(ndin,ndout)
   m0=SetPriorityClass(GetCurrentProcess(),NORMAL_PRIORITY_CLASS)
 
 ! Start a thread for doing A/D and D/A with sound card.
-  Thread1=CreateThread(0,0,a2d,0,CREATE_SUSPENDED,id)
+  Thread1=CreateThread(0,0,a2d,0,CREATE_SUSPENDED,id1)
   m1=SetThreadPriority(Thread1,THREAD_PRIORITY_ABOVE_NORMAL)
   m2=ResumeThread(Thread1)
 
 ! Start a thread for background decoding.
-  Thread2=CreateThread(0,0,decode1,0,CREATE_SUSPENDED,id)
+  Thread2=CreateThread(0,0,decode1,0,CREATE_SUSPENDED,id2)
   m3=SetThreadPriority(Thread2,THREAD_PRIORITY_BELOW_NORMAL)
   m4=ResumeThread(Thread2)
 #else
diff --git a/getfile.f90 b/getfile.f90
index 3f7578faa..26a1b0e93 100644
--- a/getfile.f90
+++ b/getfile.f90
@@ -83,8 +83,6 @@ subroutine getfile(fname,len)
   endif
 
   mousebutton=0
-  ndecoding=4
-
   go to 999
 
 998 ierr=1001
diff --git a/spec.f90 b/spec.f90
index cd07c1e84..0b24027e5 100644
--- a/spec.f90
+++ b/spec.f90
@@ -205,5 +205,6 @@ subroutine spec(brightness,contrast,logmap,ngain,nspeed,a)
   enddo
 
 900 continue
+  if(ndiskdat.eq.1) ndecoding=4
   return
 end subroutine spec
diff --git a/wsjt.py b/wsjt.py
index fd1b8ee13..9f44e186c 100644
--- a/wsjt.py
+++ b/wsjt.py
@@ -15,7 +15,7 @@ from types import *
 import array
 
 root = Tk()
-Version="5.9.3 r" + "$Rev$"[6:-1]
+Version="5.9.4 r" + "$Rev$"[6:-1]
 print "******************************************************************"
 print "WSJT Version " + Version + ", by K1JT"
 print "Revision date: " + \