Fix errors in IE