fixed bug with folder creation for indexer.