Fixing defect in which we periodically skipped first instance type due to poor handling of periodic header rows