Fix flicker on page load.