api fix for reindexing