fix theoretical bug in new StructureParser

might affect error messages under some circumstances, not really sure