Prevented inf-loop on IE9.