Fix musics stopping playing sometimes on slow machines.