Fix addition of header rows