Fixed some bugs with bg-music.