fixes a problem that prevents audio file to be saved