Fixed a couple of things for IE