fixed a bug for fast image indexer