Improved IE8 compatibility