fix for history file deal