Fixed issue causing web pages to not be drawn correctly after being redrawn.