improve Firefox compatibility