Fix saveFile() not saving anything to disk