fix slug generation during indexing