Added some fixes for IE8