Well, this line (with a change of icon file name) works perfectly fine for me.

If you did $tip() without the echo (or a noop), then it'd cause what you're saying.