Fix a rending/painting refresh issue with IE