Fix for defect which was causing dialog boxes not to show on IE