Fixing Firefox compatibility.