bugfix, for loop does not find any files