Fixed Firefox compatibility.