Fixing error in Firefox 3.6