[jQuery] weird error in globalEval

[jQuery] weird error in globalEval

In IE (but not in firefox) i suddenly got a 'fatal' error in globalEval; wrong argument passed in the last line, that says head.removeChild (script)..
In order to get things working again, i've had to make a small workaround;
    globalEval: function( data ) {
        data = jQuery.trim( data );
        if ( data ) {
            // Inspired by code by Andrea Giammarchi
            // <a href="http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html">http://webreflection.blogspot.com/2007/08/global-scope-evaluation-and-dom.html</a>
            var head = document.getElementsByTagName("head")[0] || document.documentElement,
                script = document.createElement("script");
            script.type = "text/javascript";
            if ( jQuery.browser.msie )
                script.text = data;
            else
                script.appendChild( document.createTextNode( data ) );
            head.appendChild( script );
            try {
                head.removeChild( script );
            } catch (e) {
               
            }
        }
    },
IE's debugger call-stack shows that the initiator to this problem was jScrollPane;
        $('#scroller.jScrollPane').jScrollPane({showArrows:true, scrollbarWidth: 15, arrowSize: 16});
/* See <a href="http://kelvinluck.com/assets/jquery/jScrollPane/">http://kelvinluck.com/assets/jquery/jScrollPane/</a>
 * $Id: jScrollPane.js 4765 2008-02-17 21:14:59Z kelvinluck $
 */
So i'm moving on now, but i just thought i'd let you guys know...
Thanks again for releasing jQuery under good licenses in the first place, using it has been a real pleasure so far :)