fix index page bug