Fix bugs in index page