Fix for bug on IE