Firefox compatibility hotfix