fix for graphical glitches when called browser.set_data more than once