Fix bug of main page not showing up in firefox