Fix a bug that session_id is not passed through.