fix overlay flash up when page load