fix bugs in index
fix index