Fix bug which made it very unlikely that a sound file is loaded properly.