fixed index page bug