fix a couple of minor IE8 bugs. #2791