fixed issues in index.