fixed problem with indexer