Fixed read_single_nhist function.