More WAV writing problems