Fix some IE bugs