fixbug on IE9+ and FireFox