Should fix error with appending to file in folder