Fixing a segfault in ham_bench