Fix index page bug