Index has trouble showing, fixed other bugs