fix the index page bug