Fixed compatibility with new chrome browser