fix a bug of MusicPlayer that cause nullpointer exception