Some bugfixes for IE