Fix to new files array

Creating SpaceBeers a PR for his fix for #2