bug fix for front page not loading