Fix bug where files aren't created yet