Fixes WAV output.