fixed initial page load failure