Fix unable to open multiple object stores bug