Small changes for IE8 support