Fixes open connection problem in indexer