IE7 bug fixes and other fixes