Fixing trailing dot in indexing