Fix bug : indexer crash with big script