Fixed some IE bugs