Bugfixes for IE8

Bugfixes/workarounds for IE8