fixed page load bug