Fixed WriteHists