fix bug in XYZ parser, probably due to confusing difference in indexing in regular expressions versus arrays