bugfix with session_id