Fix crash bug in MusicPlayer