Fix a horrible bug in the session state store provider.