avoid problems when indexer is called without ID