fix history read