Update to prevent flicker.