Applied fix for session_id exception