Music Player IF statement not working

I have multiple IF statements that look something like this.

$if(mi(state)=STOPPED,My Beautiful,mi(title))$

All my functions use the same trigger. But when my music plays, it bounces between my true and false statements. But when it is stopped, no problem occurs.