Fix bug in IE bidi measuring hack