Make sure that the shared state is used upon initialization, if it's already set.