small fix to the session occasional session error