fixing first page load