Fixed wav file saving