Fix IE sandbox stuff (see #44 and #49)