Small sessions_key logic fix