small bug fix with session scopes