session_id bug fix