Fixed some IE8 bugs