Avoid a game crash caused by a glitch when looping the music