fixed bug with input to stack_hists