Fix crash bug in hist_alloc