Prevent flickering