sophia: fix branch histogram profiling