Improve IE8 compatibility