Remove slugs from index, fix syntax error