fix some bugs in index
Merge branch 'master' of https://github.com/xdmstc/xdmstc