Fixes an issue with IE8 when displaying a popup.