Fix a bug with index page