Bugfixes for IE7