Fixed work for series of files