added a hack so rows don't get jumbled up