Fixes for IE7 and 8.