profiler: fix bug at add_wallet/scope