fix diary file