Fixed bug where index page wouldn't load posts