Fix #1036

Fixes 27 tests in IE 9.