fix for Firefox 3.6+