Fixing concat errors with the sequence of files