fixed reflow bug on page load