fixed header of saved wav files