fix parsing list of files