fixed #354. transaction closed after indices loaded.