Fixed compatibility for other browsers