Fixed a case where setting flags would give the script the wrong number of files to set sequence length