Fix #247, could not reopen collections with size counter.