fixed mysterious bug on IE