fix #504 tests failing in Firefox 3.6