Fix infinite refresh on IE