Better firefox compatibility