Fixed document store initialization.