Fixed bug on IE impl