fix history file path