Fix repositioning bug in Firefox 3.6

Not sure why this is an issue in Firefox 3.6... but this seems to fix it.