make WAV loading more resiliant