Improved IE 8 compatibility