Fixed compatibility issue with Chrome/IE