Fixing bug with generated sample name lengths