fix a bug in index page