typo in history file creation