Fixing parsing error/out-of-bounds with sample names