Fixed problem with arrays of files