Fixed issues where IE8 was not working properly