header row bug fix