Feh. That most insidious of creatures. I usually find that listening to the song through, from beginning to end, or singing it tends to help. If that doesn't work, I just try not to worry about it. Sooner or later it'll go away. One time, for example, I had this tune in my... what? It's back? NOOOOOOOooooooooooooo......!
Dan Schatz