I think this should be done before we're advancing in the playlist, i.e. at the beginning of the function, just to be on the safe side.
Also, you forgot to change it in the constructor which is why it won't work for the first song. ;)