Fixed partially working browser repaint hack