For Loop in index.md still not working properly